﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using DAL.Service;
using DAL.Service.Impl;
using DomainModel;

namespace BIZ
{
    public class LibraryBookIndentOper
    {
        ILibraryBookIndentService indentService = new LibraryBookIndentServiceImpl();
        IBookService bs = new BookServiceImpl();

        public IList getLibraryBookName(int indentid)
        {
            return indentService.getLibraryBookName(indentid);
        }

        public IList getLibraryBookIndent(string in_s, string in_e, int pageno, int pagesize, int state, string card, string isbn, string indent, string name, string bookName)
        {
            return indentService.getLibraryBookIndent(in_s, in_e, pageno, pagesize, state, card, isbn, indent, name, bookName);
        }

        public IList getLibraryBookIndent(string in_s, string in_e, int pageno, int pagesize, int state, string name, string bookName, string author, string press)
        {
            return indentService.getLibraryBookIndent(in_s, in_e, pageno, pagesize, state, name, bookName, author, press);

        }

        public int updateIndentState(int id, int state)
        {
            return indentService.updateIndentState(id, state);
        }

        public object save(object entity)
        {
            return indentService.save(entity);
        }

        public int getCountByBookIdUid(int bookid, int uid)
        {
            return indentService.getCountByBookIdUid(bookid, uid);
        }

        public IList userGetHistroyList(int pageno, int pagesize, int uid)
        {
            return bs.userGetHistroyList(pageno, pagesize, uid);
        }
        public IList userGetCurrentList(int uid)
        {
            return bs.userGetCurrentList(uid);
        }

        public IList indent(string lbid, string ip, string ucid, int uid)
        {
            return indentService.indent(lbid, ip, ucid, uid);
        }

        public IList ReturnBook(string lbi_id, int lbi_stateN, int lbi_stateO, int operUid)
        {
            return indentService.ReturnBook(lbi_id, lbi_stateN, lbi_stateO, operUid);
        }
    }
}

